package com.wolf.etl.core.rule.convert;

import org.springframework.stereotype.Component;

/**
 * @author sdyang
 * @date 2019/10/21 17:11
 **/
@Component("cONVERT_BY_FORMULA")
public class CONVERT_BY_FORMULA extends AbstractConvertRule{

    @Override
    public RetInfo convert(String cxt, String src, String... params) {
        RetInfo retInfo = new RetInfo();
        retInfo.setSrouceInfo(src);
        retInfo.setTargetInfo(String.format(cxt,src));
        return retInfo;
    }
}
